module.exports = {
  publicPath: '/',
  configureWebpack: {
    resolve: {
      extensions: [],
      alias: {
        // 路径配置别名
        assets: '@/assets',
        common: '@/common',
        components: '@/components',
        network: '@/network',
        views: '@/views',
        $: "jQuery",
        jQuery: "jquery",
        "windows.jQuery": "jQuery"
      }
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'https://home.young-zy.com:26132/api', // 请求地址
        ws: true,
        secure: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': '' // 请求地址
        }
      }
    }
  }
}
